Skip to content

ai comment#4587

Merged
felixfeng33 merged 59 commits intomainfrom
feat/ai-comments
Sep 10, 2025
Merged

ai comment#4587
felixfeng33 merged 59 commits intomainfrom
feat/ai-comments

Conversation

@felixfeng33
Copy link
Collaborator

Checklist

  • yarn typecheck
  • yarn lint:fix
  • yarn test
  • yarn brl
  • yarn changeset
  • ui changelog

@codesandbox
Copy link

codesandbox bot commented Aug 27, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@changeset-bot
Copy link

changeset-bot bot commented Aug 27, 2025

🦋 Changeset detected

Latest commit: c9b704b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@platejs/ai Major
@platejs/comment Major
@platejs/selection Major
@platejs/markdown Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Aug 27, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
plate Ready Ready Preview Comment Sep 9, 2025 3:10pm

@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Aug 27, 2025
@claude
Copy link
Contributor

claude bot commented Aug 27, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

@claude
Copy link
Contributor

claude bot commented Aug 27, 2025

Claude finished @felixfeng33's task —— View job


✅ Changesets and changelog updated

Completed Tasks:

  • Analyze AI plugin changes to determine change type (minor - new feature)
  • Analyze markdown package changes (patch - simplified rule)
  • Analyze utils package changes (patch - new constant)
  • Analyze registry changes (new AI review components)
  • Create changeset for @platejs/ai package (minor)
  • Create changeset for @platejs/markdown package (patch)
  • Create changeset for @platejs/utils package (patch)
  • Update changelog.mdx for registry components
  • Commit all changeset and documentation files

Summary

Created changesets and updated documentation for the AI review feature:

Changesets created:

  • .changeset/platejs-ai-review-minor.md - Minor version bump for @platejs/ai with new AIReviewPlugin
  • .changeset/platejs-markdown-patch.md - Patch version bump for @platejs/markdown
  • .changeset/platejs-utils-patch.md - Patch version bump for @platejs/utils

Documentation updated:

  • docs/components/changelog.mdx - Added August 27 entry for new AI review registry components

The changesets properly document the new AI review functionality, including the AIReviewPlugin, hooks, transforms, and UI components. Each package has its own changeset file following the guidelines for proper semantic versioning.

@dosubot dosubot bot added the plugin:ai label Aug 27, 2025
claude bot and others added 3 commits August 27, 2025 09:01
Co-authored-by: Felix Feng <undefined@users.noreply.github.com>
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Aug 27, 2025
comments: AIReviewComment[];
}

export function useStreamObject(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export function useStreamObject(
export function useStreamComments(


import { markdownJoinerTransform } from '@/registry/lib/markdown-joiner-transform';

const choseToolSystem = `You are a strict classifier. Classify the user's last request as "generate", "edit", or "comment".
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const choseToolSystem = `You are a strict classifier. Classify the user's last request as "generate", "edit", or "comment".
const chooseToolSystem = `You are a strict classifier. Classify the user's last request as "generate", "edit", or "comment".

if (!toolName) {
const { object: AIToolName } = await generateObject({
enum: ['generate', 'edit', 'comment'],
model: openai('gpt-4o'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
model: openai('gpt-4o'),
model: google('gemini-2.5-flash'),

@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Sep 9, 2025
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:XXL This PR changes 1000+ lines, ignoring generated files. labels Sep 9, 2025
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Sep 9, 2025
@felixfeng33 felixfeng33 merged commit a36b181 into main Sep 10, 2025
11 checks passed
@felixfeng33 felixfeng33 deleted the feat/ai-comments branch September 10, 2025 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plugin:ai size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants